import 'dart:async';

import 'package:flutter/services.dart';

class FlutterPlugin {
  static  MethodChannel _flutter_plugin= MethodChannel('flutter_plugin');

  static Future getPlatformVersion() async {
   return await _flutter_plugin.invokeMethod('getPlatformVersion');
  }
  static show(String msg) async {
    await _flutter_plugin.invokeMethod('show',{
       "msg":msg
    });
  }
  static down(String url) async{
   print(url);
    await _flutter_plugin.invokeMethod('down',{
      "url":url
    });
  }

  static clip(String msg) async{
    await _flutter_plugin.invokeMethod('clip',{
      "msg":msg
    });
  }
  static href(String pack) async{
    await _flutter_plugin.invokeMethod('href',{
      "msg":pack
    });
  }

}
